home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14386 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 65 6e 67 | 2e 63 6f 6e 76 65 78 2e |news.eng|.convex.|
|00000030| 63 6f 6d 21 61 72 63 6f | 21 75 73 65 6e 65 74 0a |com!arco|!usenet.|
|00000040| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 4c 65 61 63 |From: Br|ian Leac|
|00000050| 68 20 3c 6c 61 73 62 66 | 6c 40 61 61 69 2e 61 72 |h <lasbf|l@aai.ar|
|00000060| 63 6f 2e 63 6f 6d 3e 0a | 53 75 62 6a 65 63 74 3a |co.com>.|Subject:|
|00000070| 20 52 65 3a 20 73 63 6f | 70 65 20 6f 66 20 6f 70 | Re: sco|pe of op|
|00000080| 65 72 61 74 6f 72 73 0a | 58 2d 4e 6e 74 70 2d 50 |erators.|X-Nntp-P|
|00000090| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 31 33 36 |osting-H|ost: 136|
|000000a0| 2e 32 32 36 2e 31 31 36 | 2e 31 0a 43 6f 6e 74 65 |.226.116|.1.Conte|
|000000b0| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|000000c0| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|000000d0| 61 73 63 69 69 0a 54 6f | 3a 20 22 57 65 6e 64 79 |ascii.To|: "Wendy|
|000000e0| 20 45 2e 20 4d 63 43 61 | 75 67 68 72 69 6e 22 20 | E. McCa|ughrin" |
|000000f0| 3c 77 65 6d 63 63 61 75 | 67 40 70 72 61 69 72 69 |<wemccau|g@prairi|
|00000100| 65 6e 65 74 2e 6f 72 67 | 3e 0a 4d 65 73 73 61 67 |enet.org|>.Messag|
|00000110| 65 2d 49 44 3a 20 3c 33 | 31 35 43 39 37 37 31 2e |e-ID: <3|15C9771.|
|00000120| 36 30 43 46 40 61 61 69 | 2e 61 72 63 6f 2e 63 6f |60CF@aai|.arco.co|
|00000130| 6d 3e 0a 53 65 6e 64 65 | 72 3a 20 75 73 65 6e 65 |m>.Sende|r: usene|
|00000140| 74 40 6e 65 77 73 2e 61 | 72 63 6f 2e 63 6f 6d 0a |t@news.a|rco.com.|
|00000150| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000160| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|00000170| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 41 52 |Organiza|tion: AR|
|00000180| 43 4f 20 41 6c 61 73 6b | 61 20 49 6e 63 2e 0a 52 |CO Alask|a Inc..R|
|00000190| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 6a 64 32 |eference|s: <4jd2|
|000001a0| 33 71 24 6a 70 34 40 76 | 69 78 65 6e 2e 63 73 6f |3q$jp4@v|ixen.cso|
|000001b0| 2e 75 69 75 63 2e 65 64 | 75 3e 0a 4d 69 6d 65 2d |.uiuc.ed|u>.Mime-|
|000001c0| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 44 61 74 |Version:| 1.0.Dat|
|000001d0| 65 3a 20 53 61 74 2c 20 | 33 30 20 4d 61 72 20 31 |e: Sat, |30 Mar 1|
|000001e0| 39 39 36 20 30 32 3a 30 | 37 3a 34 35 20 47 4d 54 |996 02:0|7:45 GMT|
|000001f0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|00000200| 6c 61 20 32 2e 30 20 28 | 58 31 31 3b 20 49 3b 20 |la 2.0 (|X11; I; |
|00000210| 48 50 2d 55 58 20 41 2e | 30 39 2e 30 35 20 39 30 |HP-UX A.|09.05 90|
|00000220| 30 30 2f 37 35 35 29 0a | 0a 57 65 6e 64 79 20 45 |00/755).|.Wendy E|
|00000230| 2e 20 4d 63 43 61 75 67 | 68 72 69 6e 20 77 72 6f |. McCaug|hrin wro|
|00000240| 74 65 3a 0a 3e 20 0a 3e | 20 20 49 74 20 69 73 20 |te:.> .>| It is |
|00000250| 6d 79 20 75 6e 64 65 72 | 73 74 61 6e 64 69 6e 67 |my under|standing|
|00000260| 20 74 68 61 74 20 69 66 | 20 49 20 64 65 63 6c 61 | that if| I decla|
|00000270| 72 65 20 27 66 27 20 74 | 6f 20 62 65 20 61 0a 3e |re 'f' t|o be a.>|
|00000280| 20 20 66 72 69 65 6e 64 | 20 6f 66 20 61 20 62 61 | friend| of a ba|
|00000290| 73 65 20 63 6c 61 73 73 | 2c 20 69 74 20 73 68 6f |se class|, it sho|
|000002a0| 75 6c 64 20 61 70 70 6c | 79 20 74 6f 20 6f 62 6a |uld appl|y to obj|
|000002b0| 65 63 74 73 20 6f 66 0a | 3e 20 20 74 68 65 20 64 |ects of.|> the d|
|000002c0| 65 72 69 76 65 64 20 63 | 6c 61 73 73 20 77 69 74 |erived c|lass wit|
|000002d0| 68 20 69 6d 70 75 6e 69 | 74 79 2e 20 46 6f 72 20 |h impuni|ty. For |
|000002e0| 69 6e 73 74 61 6e 63 65 | 2c 20 69 66 20 27 66 27 |instance|, if 'f'|
|000002f0| 0a 3e 20 20 69 73 20 73 | 75 70 70 6f 73 65 64 20 |.> is s|upposed |
|00000300| 74 6f 20 74 61 6b 65 20 | 6f 6e 65 20 61 72 67 75 |to take |one argu|
|00000310| 6d 65 6e 74 20 74 68 61 | 74 20 69 73 20 61 6e 20 |ment tha|t is an |
|00000320| 6f 62 6a 65 63 74 20 6f | 66 0a 3e 20 20 74 68 65 |object o|f.> the|
|00000330| 20 62 61 73 65 20 63 6c | 61 73 73 20 61 6e 64 20 | base cl|ass and |
|00000340| 49 20 70 61 73 73 20 61 | 6e 20 6f 62 6a 65 63 74 |I pass a|n object|
|00000350| 20 6f 66 20 74 68 65 20 | 64 65 72 69 76 65 64 0a | of the |derived.|
|00000360| 3e 20 20 63 6c 61 73 73 | 20 69 6e 73 74 65 61 64 |> class| instead|
|00000370| 2c 20 73 68 6f 75 6c 64 | 20 49 20 6e 6f 74 20 65 |, should| I not e|
|00000380| 78 70 65 63 74 20 63 6f | 6e 66 6f 72 6d 69 74 79 |xpect co|nformity|
|00000390| 3f 20 49 20 61 6d 20 6e | 6f 74 0a 3e 20 20 64 6f |? I am n|ot.> do|
|000003a0| 69 6e 67 20 61 6e 79 74 | 68 69 6e 67 20 69 6e 20 |ing anyt|hing in |
|000003b0| 74 68 65 20 64 65 72 69 | 76 65 64 20 63 6c 61 73 |the deri|ved clas|
|000003c0| 73 20 6f 62 6a 65 63 74 | 20 61 70 61 72 74 20 66 |s object| apart f|
|000003d0| 72 6f 6d 0a 3e 20 20 77 | 68 61 74 20 69 74 20 68 |rom.> w|hat it h|
|000003e0| 61 73 20 69 6e 68 65 72 | 69 74 65 64 20 66 72 6f |as inher|ited fro|
|000003f0| 6d 20 74 68 65 20 62 61 | 73 65 20 63 6c 61 73 73 |m the ba|se class|
|00000400| 20 61 74 20 61 6c 6c 2e | 0a 3e 20 0a 3e 20 20 54 | at all.|.> .> T|
|00000410| 68 61 6e 6b 73 20 66 6f | 72 20 61 6e 79 20 69 6e |hanks fo|r any in|
|00000420| 70 75 74 2c 0a 3e 20 0a | 3e 20 20 77 65 6d 0a 0a |put,.> .|> wem..|
|00000430| 0a 57 65 6e 64 79 2c 0a | 0a 4c 69 70 70 6d 61 6e |.Wendy,.|.Lippman|
|00000440| 20 65 78 70 6c 61 69 6e | 73 20 74 68 69 73 20 70 | explain|s this p|
|00000450| 72 6f 62 6c 65 6d 20 69 | 6e 20 43 2b 2b 20 50 72 |roblem i|n C++ Pr|
|00000460| 69 6d 65 72 2c 20 32 6e | 64 20 45 64 69 74 69 6f |imer, 2n|d Editio|
|00000470| 6e 2c 20 70 61 67 65 20 | 34 30 37 0a 61 6e 64 20 |n, page |407.and |
|00000480| 34 30 38 2e 20 55 6e 66 | 6f 72 74 75 6e 61 74 65 |408. Unf|ortunate|
|00000490| 6c 79 2c 20 49 20 63 61 | 6e 27 74 20 65 78 70 6c |ly, I ca|n't expl|
|000004a0| 61 69 6e 20 57 48 59 2c | 20 62 75 74 20 68 65 20 |ain WHY,| but he |
|000004b0| 64 6f 65 73 20 63 6f 6e | 66 69 72 6d 0a 74 68 65 |does con|firm.the|
|000004c0| 20 62 65 68 61 76 69 6f | 75 72 20 79 6f 75 20 61 | behavio|ur you a|
|000004d0| 72 65 20 72 65 66 65 72 | 72 69 6e 67 20 74 6f 2e |re refer|ring to.|
|000004e0| 0a 0a 49 6e 63 69 64 65 | 6e 74 61 6c 6c 79 2c 20 |..Incide|ntally, |
|000004f0| 69 66 20 74 68 65 20 69 | 6e 68 65 72 69 74 61 6e |if the i|nheritan|
|00000500| 63 65 20 69 73 20 70 75 | 62 6c 69 63 2c 20 79 6f |ce is pu|blic, yo|
|00000510| 75 72 20 66 72 69 65 6e | 64 20 63 61 6e 20 72 65 |ur frien|d can re|
|00000520| 66 65 72 20 74 6f 0a 74 | 68 65 20 62 61 73 65 20 |fer to.t|he base |
|00000530| 63 6c 61 73 73 20 77 69 | 74 68 20 69 6d 70 75 6e |class wi|th impun|
|00000540| 69 74 79 2e 0a 0a 2d 42 | 72 69 61 6e 20 3a 2d 29 |ity...-B|rian :-)|
|00000550| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+